package com.engine.impl;

import com.domain.Award;
import com.domain.Expression;
import com.engine.IRule;

public class WuZi implements IRule {
    private Award award;

    @Override
    public boolean evaluate(Expression e) {
        boolean result = false;
        if (e.getTwo() == 5) {
            result = true;
            award = new Award("五子", "状元");
        }
        return result;
    }

    @Override
    public Award getAward() {
        return award;
    }
}
